package com.shop.loan.model.common;

import lombok.Data;

@Data
public class ResResultByYingCai {

    private String message;

    private Object data;

    private String code;

    public ResResultByYingCai() {
    }

    public ResResultByYingCai(CodeByYingCai code) {
        this.code = code.getCode();
        this.message = code.getMsg();
    }

    public ResResultByYingCai(CodeByYingCai code, Object data) {
        this.code = code.getCode();
        this.message = code.getMsg();
        this.data = data;
    }

}
